package reversedNumber;

import java.io.PrintStream;
import java.util.Scanner;

public class ReversedNumber {
	PrintStream out;

	ReversedNumber(){
		out = new PrintStream(System.out);
	}

	void printNummer(int getallenreeks){
		if(getallenreeks == 0){
			return;
		}

		int nummer = (getallenreeks % 10);
		out.printf("%d",nummer);
		printNummer(getallenreeks / 10);
	}

	void start(){
		out.printf("geef de getallenreeks:");
		Scanner in = new Scanner(System.in);
		int getallenreeks = in.nextInt();
		printNummer(getallenreeks);
	}

	public static void main(String[] args) {
		new ReversedNumber().start();
	}

}
